package net.messagenet.mazor.infra.persistence.entities;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * This entity bean represents a product in the system
 * 
 * @author Idan
 *
 */


@Entity
@Table(name="MZR_PRODUCTS")

public class Product implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = -1946024261064590333L;
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY )
	private int id;
	private String productName;
	protected String dialogicItemKey ;
	
	/**
	 * returns the item id given by dialogic
	 * 
	 * @return dialogicItemKey
	 */
	public String getDialogicItemKey() {
		return dialogicItemKey;
	}
	/**
	 * sets the item id given by dialogic 
	 * 
	 * @param dialogicItemKey
	 */
	public void setDialogicItemKey(String dialogicItemKey) {
		this.dialogicItemKey = dialogicItemKey;
	}
	/**
	 * returns the id of the pos request given by mazor system 
	 * 
	 * @return id
	 */
	public int getId() {
		return id;
	}
	/**
	 * sets the id of the pos
	 * 
	 * @param id - sets a new id for the DPA request
	 */
	public void setId(int id) {
		this.id = id;
	}
	/**
	 * returns the product name
	 * 
	 * @return productName
	 */
	public String getProductName() {
		return productName;
	}
	/**
	 * sets the product name 
	 * 
	 * @param productName
	 */
	public void setProductName(String name) {
		this.productName = name;
	}
}
